.modal {
  display: block;
}

.modal-mask {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgb(89, 89, 89);
  /* 设置层级 */
  z-index: 10;
  /* 设置可视效果(模糊) */
  filter: opacity(0.5);
}

.modal-content {
  min-width: 400px;
  min-height: 200px;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  z-index: 20;
  border-radius: 0.5rem;
  background-color: white;
}

.modal-content-header {
  width: 100%;
  height: 25%;
  display: flex;
  border-bottom: 1px #e8e8e8 solid;
}

.modal-content-header-title {
  flex: 9;
  height: 100%;
  /* 实现垂直居中 */
  display: flex;
  align-items: center;
  border-top-left-radius: 0.5rem;
  margin-left: 0.5rem;
}

.modal-content-header-close {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
  /* 实现水平居中 */
  justify-content: center;
  border-top-right-radius: 0.5rem;
  color: rgb(82, 82, 82);
}

.modal-content-header-close:hover {
  cursor: pointer;
}

.modal-content-body {
  width: 100%;
  height: 50%;
}

.modal-content-tail {
  width: 100%;
  height: 25%;
  border-bottom-left-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
  text-align: right;
  border-top: solid 1px #e8e8e8;
}

.modal-content-tail-sure {
  display: inline-block;
  width: 3rem;
  height: 1.5rem;
  line-height: 1.5rem;
  text-align: center;
  letter-spacing: 0.2rem;
  background-color: rgb(24, 144, 255);
  color: white;
  border: solid 1px #e8e8e8;
  padding: 0.1rem 0.2rem;
  margin-right: 0.4rem;
  margin-top: 0.5rem;
  border-radius: 0.25rem;
}

.modal-content-tail-sure:hover {
  cursor: pointer;
  background-color: rgb(64, 169, 255);
}

.modal-content-tail-close {
  display: inline-block;
  width: 3rem;
  height: 1.5rem;
  line-height: 1.5rem;
  text-align: center;
  letter-spacing: 0.2rem;
  border: solid 1px #e8e8e8;
  padding: 0.1rem 0.2rem;
  margin-left: 0.4rem;
  margin-top: 0.5rem;
  border-radius: 0.25rem;
}

.modal-content-tail-close:hover {
  cursor: pointer;
  color: rgb(64, 169, 255);
  border: solid 1px rgb(64, 169, 255);
}

.modal-content-body-content {
  height: 100%;
  display: flex;
  align-items: center;
  margin: 0 1rem;
}

.modal-content-body-content-label {
  flex: 2;
  height: 1.5rem;
  line-height: 1.5rem;
  text-align: right;
  margin-right: 0.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modal-content-body-content-label::after {
  content: ':';
}

.modal-content-body-content-input {
  flex: 3;
  height: 1.5rem;
  border: solid 1px #e8e8e8;
  border-radius: 0.25rem;
  outline: none;
}

.modal-content-body-content-input:hover, .modal-content-body-content-input:focus-visible  {
  border: solid 1px rgb(64, 169, 255);
}